import { Module } from 'vuex'
import { ILoginState } from './type'
import { IRootState } from '../type'

const loginModule: Module<ILoginState, IRootState> = {
    namespaced: true,
    state() {
        return {
            token: '',
            userInfo: ''
        }
    },
    actions: {
        accountLoginAction({ commit }, payload: any) {
            console.log("accountLogin", payload)
        },
        phoneLoginAction({ commit }, payload: any) {
            console.log("phoneLogin", payload)
        }

    }

}

export default loginModule